" VUNDLE settings
set nocompatible  
set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'jiangmiao/auto-pairs'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'mattn/emmet-vim'
Plugin 'kien/ctrlp.vim'
Plugin 'digitaltoad/vim-jade'
Plugin 'walm/jshint.vim'
Plugin 'othree/html5.vim'

"for nodejs
Plugin 'moll/vim-node'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'othree/javascript-libraries-syntax.vim'
Plugin 'guileen/vim-node-dict'
Plugin 'myhere/vim-nodejs-complete'
"Plugin 'kshenoy/vim-signature'

call vundle#end()            " required
filetype plugin indent on    " required

" 唐品的私人设置
cd ~/proj
set go=
"set lines=35 columns=100
au GUIEnter * simalt ~x  "窗口最大化
syntax on
"set cursorline
"set cursorcolumn 
set guifont=yahei\ consolas\ hybrid:h13
set anti enc=utf-8
set guifont=source\ code\ pro:h13
colorscheme desertEx
imap jf <Esc>
imap fj <Esc>:
autocmd InsertLeave * se nocul "高亮当前行
autocmd InsertEnter * se cul
set ruler 
set nu
set showcmd
set cmdheight=1
set scrolloff=5
set nocompatible
"set viminfo += !
filetype on
filetype indent on
"set iskeyword += $,@,%,#,-	"带有如下符号的单词不要被换行
:highlight OverLength ctermbg=red ctermfg=white guibg=red guifg=white
:match OverLength '\%10000v.*'
set nobackup
setlocal noswapfile
set bufhidden=hide
"set linespace
set wildmenu	"增强模式中的命令行自动完成
set backspace=2
set whichwrap+=b,s,<,>,h,l,[,]	" 允许backspace和光标键跨行
set mouse=a
set selection=exclusive
set selectmode=mouse,key
set noerrorbells
set fillchars=vert:\ ,stl:\ ,stlnc:\
set showmatch
set matchtime=5
set ignorecase
set incsearch
set nohlsearch
set listchars=tab:\|\ ,trail:.,extends:>,precedes:<,eol:$ 
set scrolloff=3
set laststatus=2	" 显示状态行
set statusline=%F%m%r%h%w\[POS=%l,%v][%p%%]\ %{strftime(\"%H:%M-%d\")}
"set spell
set autoindent	"继承前一行的缩进方式
set smartindent
set cindent
set smarttab
set foldenable
set foldcolumn=0
set foldmethod=indent 
set foldlevel=5
set foldenable  
set guicursor=a:blinkon600-blinkoff600 " Slow down cursor blinking speed
set ts=4
set sw=4
" omni complete
inoremap <C-Space> <C-x><C-o>
inoremap <C-@> <C-Space>
" tab switch 
nmap <C-Tab> :tabn<CR>
nmap <C-S-Tab> :tabp<CR>
nmap <C-t> :tabnew<CR>


" 编码设置
set encoding=utf-8	" 在windows上将这项改为utf-8会导致消息文本乱码
set termencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese,cp936
"set fileencoding=cp936
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
language messages en_US.utf-8
"language messages zh_CN.utf-8

" 插件设置
nnoremap df :NERDTreeToggle<CR>
let NERDTreeDirArrows=0